#include "mystdio.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
    MyFILE* fp = Myopen("log.txt","w");
    if(fp == NULL)
    {
        printf("fp error");
        return 1;
    }
    char* str = (char*)"hello wzh";
    Mywrite(fp,str,strlen(str));
    Myfflush(fp);
    printf("%s\n",fp->outbuff);
    
//    Myfclose(fp);

    return 0;
}
